/**
 * @(#)com.pattern.p_02_observer.order.OrderTest
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_02_observer.order;

/**
 * @author fusf
 * @version 1.0  2016/11/3
 */
public class OrderTest {
    public static void main(String[] args) {
        Customer customer = new Customer();
        Accountant accountant = new Accountant(customer);
        Cashier cashier = new Cashier(customer);
        Dilliveryman dilliveryman = new Dilliveryman(customer);
        customer.attach(accountant);
        customer.attach(cashier);
        customer.attach(dilliveryman);
        customer.setCustomState("编号0001订单付款成功");
        customer.notifyJobStation();
    }
}
